{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "2d325887",
   "metadata": {},
   "source": [
    "* 本学习记录人：马子娟    \n",
    "* 学习时间：2021-11-11   \n",
    "* week06 \n",
    "* [参考的文档](https://www.python.org/doc/)    \n",
    "* [许老师博客](https://www.cnblogs.com/xuzhichao)   "
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b351857a",
   "metadata": {},
   "source": [
    "# 本周学习内容\n",
    "\n",
    "## 1.认识[列表](https)\n",
    "\n",
    "\n",
    "## 2.列表的取值\n",
    "\n",
    "## 3.列表的一般方法\n",
    "\n",
    "## 4.列表的高级方法"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a1d00adc",
   "metadata": {},
   "source": [
    "### 1.1 初始列表\n",
    "\n",
    "> 1. 列表的样式：[元素1，元素2，元素3，...]\n",
    "> 2. 列表的性质：\n",
    ">> 1. 列表是有顺序的(Sequnce Types 序列类型的数据)，第一个元素的位置/索引(index) 是 0\n",
    ">> 2.列表可以存放不同的类型数据， 但是 一般存放相同类型数据\n",
    ">> 3. 列表可以按照序列数据 进行 取值(index) & 切片(slices)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "4766b8f9",
   "metadata": {},
   "outputs": [],
   "source": [
    "username_database = \"Alex;Jack;xxxx;Marry\"\n",
    "username_database_list = [\"Alex\",\"Jack\",\"xxxx\",\"Marry\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "3e8cf11b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Jack'"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 目标取出每一个账号名称\n",
    "print(username_database[5:9])   # 字符串就显得比较麻烦\n",
    "print(username_database_list[1]) # 列表可以按照独立元素进行取值"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "15a5c38b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Jack'"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "username_database_list[1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "d4dc1833",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 列表中可以包含不同的 types (int\\float\\str..也可是列表)数据\n",
    "\n",
    "different_types_list = [\"Alex\",18,175.5,[\"广东省广州市广州南方学院\",510970]]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "a9a9cf9a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Alex'"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "0cc0249a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "18"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "0c7ef3ad",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "175.5"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[2]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "01615780",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['广东省广州市广州南方学院', 510970]"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[3]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "e50f7cd1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "510970"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[3][1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "2695127f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "5"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 思考：取值是否需要知道列表的长度？如果列表只有5个元素，\n",
    "# 取值不能取5以上\n",
    "squares = [1, 4, 9, 16, 25]\n",
    "print(squares[0])\n",
    "# print(squares[10]) # IndexError （索引错误）：list index out of range\n",
    "# 一般 列表的取值需要先知道/清楚列表的长度，取值不要超过其长度范围\n",
    "len(squares) # 取值 不应大于 长度5 位置4"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b662134b",
   "metadata": {},
   "source": [
    "### 2.1 切片（slices）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "9132a71c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[1, 4, 9, 16, 25]"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "squares = [1,4,9,16,25]\n",
    "squares"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "2500fabf",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[9, 16]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# (从左往右取)取 9和16：\n",
    "squares[2:4]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "bf51c55a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[9, 16]"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# （从右往左取）9和16：\n",
    "squares[-3:-1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "3d47a22d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[9, 16, 25]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# (从左往右取) 9,16,25： 结论：取到末尾或首位都一律不写最好\n",
    "squares[2:]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "4781be98",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[9, 16, 25]"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# （从右往左取） 9,16,25：\n",
    "squares[-3:]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "a713d053",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[1, 4, 9]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "squares[:3]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "cbdd2fbe",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[1, 9]"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 取 1,9？回顾切片的步长 step [start,stop,step]\n",
    "squares[:3:2]"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d5a724fa",
   "metadata": {},
   "source": [
    "### 2.2 列表取值实践"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "4888dafe",
   "metadata": {},
   "outputs": [],
   "source": [
    "vowels = ['a','e','i','o','u']# vowels 元音[\"数字媒体\"]\n",
    "word =\"Milliways\"             # word ：目标文本    文本 1000000个字符"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "9dae6556",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "i\n",
      "i\n",
      "a\n"
     ]
    }
   ],
   "source": [
    "# 请检查 word 中出现了哪些 vowels 中的元素，并打印出来\n",
    "# 知识点：\n",
    "# 1. for 循环和 if 条件判断\n",
    "# 2. in 判断是否存在在列表中\n",
    "for i in word:\n",
    "    if i in vowels:\n",
    "        print(i)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "bc0861c2",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "a\n",
      "i\n"
     ]
    }
   ],
   "source": [
    "# 请检查 vowels 中出现的 word\n",
    "for i in vowels:\n",
    "#    print(i)\n",
    "    if i in word:\n",
    "        print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "211c3fb8",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "请输入你要查询的文本：hbdhdcahbchbcjha\n",
      "6 a\n",
      "15 a\n"
     ]
    }
   ],
   "source": [
    "# 扩展案例：枚举：确定其出现的位置\n",
    "user_word = input(\"请输入你要查询的文本：\")\n",
    "for i,v in enumerate(user_word):\n",
    "    if v in vowels:\n",
    "        print(i,v)"
   ]
  },
  {
   "attachments": {},
   "cell_type": "markdown",
   "id": "af740ec7",
   "metadata": {},
   "source": [
    "### 3. 列表的一般方法\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "id": "8d3de22a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Mike', 'Mary', 'Jan', 'Jack  ']"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names = [\"Mike\",\"Mary\",\"Jan\",\"Jack  \"]\n",
    "names"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a747216a",
   "metadata": {},
   "source": [
    ">1.append() 列表的新增，增加元素"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "id": "2c95b41f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function append:\n",
      "\n",
      "append(object, /) method of builtins.list instance\n",
      "    Append object to the end of the list.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(names.append)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "id": "46968662",
   "metadata": {},
   "outputs": [],
   "source": [
    "names.append(\"Alex\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "id": "dee80758",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Mike', 'Mary', 'Jan', 'Jack  ', 'Alex']"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3b2dea77",
   "metadata": {},
   "source": [
    "> 2.remove()选择列表的内容/值（values）,删除\n",
    ">> * 注意： remove()的一般步骤：1.先查询 in 2. 再删除"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f195c3c2",
   "metadata": {},
   "outputs": [],
   "source": [
    "num_list = []"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "id": "a27e3f84",
   "metadata": {},
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name 'num_list' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-73-1e9231ae12f6>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mnum_list\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mremove\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;36m4\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m: name 'num_list' is not defined"
     ]
    }
   ],
   "source": [
    "num_list.remove(4)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "id": "d3670b3a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function remove:\n",
      "\n",
      "remove(value, /) method of builtins.list instance\n",
      "    Remove first occurrence of value.\n",
      "    \n",
      "    Raises ValueError if the value is not present.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(names.remove)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "id": "c51da87c",
   "metadata": {},
   "outputs": [],
   "source": [
    "# remove()的一般步骤\n",
    "if \"Mary\" in names:# 先查询，再删除\n",
    "    names.remove(\"Mary\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "58f7b8e5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Mike', 'Jan', 'Jack  ', 'Alex']"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "id": "c99fcec9",
   "metadata": {},
   "outputs": [],
   "source": [
    "names.remove(\"Mike\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "27fd0379",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Jan', 'Jack  ', 'Alex']"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f26fab62",
   "metadata": {},
   "source": [
    "> 3. pop()pop(index=-1, /)默认删除 最后一位的值"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "f0219cae",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function pop:\n",
      "\n",
      "pop(index=-1, /) method of builtins.list instance\n",
      "    Remove and return item at index (default last).\n",
      "    \n",
      "    Raises IndexError if list is empty or index is out of range.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(names.pop)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "id": "a6bd3802",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Alex'"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names.pop()#默认删除最后一个"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "id": "3d213c4f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Jan', 'Jack  ']"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "id": "7f2de642",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Jack  '"
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names.pop(1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "id": "c383bdda",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Jan']"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "id": "8ce5fff2",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 删除实践：\n",
    "stu_id_分数 = [78,88,78,90,90,78,88,90,89,95]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "d9154500",
   "metadata": {},
   "outputs": [],
   "source": [
    "# remove 时 ，可能需要重复运行 才可以按照指定的要求删除所有的值， \n",
    "# 分数在 低于85分 的删除\n",
    "stu_id_分数 = [78,88,77,78,90,90,78,88,90,89,95]\n",
    "for j in stu_id_分数:\n",
    "    if j<85: #判断是否还有值小于85 \n",
    "        for i in stu_id_分数:\n",
    "            if i < 85:\n",
    "                stu_id_分数.remove(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "2d5c65db",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[88, 90, 90, 88, 90, 89, 95]"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stu_id_分数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "a01e512a",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 删除实践: 需要执行两次 即可删干净\n",
    "stu_id_分数 = [78,88,77,78,90,90,78,88,90,89,95,77,78,98,77,82]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "16504a9f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "当前的列表： [78, 88, 77, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 0 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 77, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 1 77\n",
      "当值小于85时 要删除的值： 77\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 2 90\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 3 90\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 4 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 5 90\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 6 89\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 7 95\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 8 77\n",
      "当值小于85时 要删除的值： 77\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 78, 98, 77, 82]\n",
      "循环遍历结果： 9 98\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 78, 98, 77, 82]\n",
      "循环遍历结果： 10 77\n",
      "当值小于85时 要删除的值： 77\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 0 88\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 1 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 2 90\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 3 88\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 4 90\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 5 89\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 6 95\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 7 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 98, 82]\n",
      "循环遍历结果： 8 82\n",
      "当值小于85时 要删除的值： 82\n"
     ]
    }
   ],
   "source": [
    "# 删除实践：错误演示！！！！！！！\n",
    "for j in stu_id_分数:\n",
    "    if j<85:\n",
    "        for i,v in enumerate(stu_id_分数):\n",
    "            print(\"当前的列表：\",stu_id_分数)\n",
    "            print(\"循环遍历结果：\",i,v)\n",
    "            if v < 85:\n",
    "                print(\"当值小于85时 要删除的值：\",stu_id_分数.pop(i))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "bc126a4e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[88, 90, 90, 88, 90, 89, 95, 98]"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stu_id_分数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "79e07979",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
